﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using dpdw.Behaviour.OberverPattern;

namespace dpdw.testing.Behaviour
{
    [TestClass]
    public class TestOberverPattern
    {
        [TestMethod]
        public void TestOberverPatterntMethod1()
        {
            System.Diagnostics.Trace.WriteLine("\r\n" + "TestOberverPatterntMethod1");

            WeatherData weatherData = new WeatherData();

            CurrentConditionsDisplay currentDisplay 
                = new CurrentConditionsDisplay(weatherData);

            weatherData.RefreshMeasurements((float)22.3, (float)30.4, (float)12.5);
            weatherData.RefreshMeasurements((float)33.3, (float)20.4, (float)43.5);
            weatherData.RefreshMeasurements((float)13.3, (float)40.4, (float)23.5);
        }
    }
}
